using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using Planisoft.Entities;


namespace Planisoft.DAO.Mapping
{
    public class UbigeoZonaMap : EntityTypeConfiguration<UbigeoZona>
    {
        public UbigeoZonaMap()
        {
            // Primary Key
            this.HasKey(t => t.IdZona);

            // Properties
            this.Property(t => t.CodPdtUbiZona)
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("UbigeoZona");
            this.Property(t => t.IdZona).HasColumnName("IdZona");
            this.Property(t => t.CodPdtUbiZona).HasColumnName("CodPdtUbiZona");
            this.Property(t => t.DescUbiZona).HasColumnName("DescUbiZona");
        }
    }
}
